<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/jquery-3.5.1.min.js"></script>
</head>
<body>
    
    <div>div1</div>
    <script>
        // $('div').hover(function(){
        //     console.log('wojinlaile');
        // },function(){
        //     console.log('woyouchuqule');
        // });

        $('div').toggle(5000,function(){
           $('div').toggle(3000)
        });
    </script>
</body>
</html>